#include "task.hpp"
#include "ThreadPool.hpp"
#include <unistd.h>
int main()
{
  ThreadPool<Task>* tp=new ThreadPool<Task>();
  tp->thread_poll_init();
  srand((unsigned long)time(nullptr));
  char arr[5]={'+','-','*','/','%'};
  while(1)
  {
    int x=rand()%100+1;
    int y=rand()%100+1;
    int op=rand()%5;
    Task t(x,y,arr[op]);
   //sleep(1);
    tp->push(t);
  }
  
}
